#pragma once

typedef enum {EMPTY=0, WHITE=1, BLACK=~WHITE, E=EMPTY, W=WHITE, B=BLACK} PIECE_TYPE;
typedef unsigned int COORD;

class checker_piece
{
public:
	checker_piece(PIECE_TYPE piece, COORD start_x, COORD start_y)
	: x_(start_x)
	, y_(start_y)
	, piece_(piece)
	{
	}

	COORD get_x() { return x_; }
	COORD get_y() { return y_; }
	void set_x(COORD x) { x_ = x; }
	void set_y(COORD y) { y_ = y; }

	PIECE_TYPE get_type() { return piece_; }

private:
	COORD x_, y_;
	PIECE_TYPE piece_;
};
